//
//  SDPaientPhotoData.m
//  SKinDiary
//
//  Created by pcyang on 16/7/25.
//  Copyright © 2016年 tencent. All rights reserved.
//

#import "SDPaientPhotoData.h"
#import "SDPhotoInfo.h"

@implementation SDPaientPhotoData
-(NSString*)getRequestUrl
{
    return [NSString stringWithFormat:@"%@/photo?patient=%ld",[[SDServerSwitchManager sharedInstance] getServerUrl],_paientId];
}

- (id)resetWithResponseModel:(id)data
{
    if([data isKindOfClass:[NSDictionary class]])
    {
        _photoList = [SDPhotoInfo modelsWithInfos:[data objectForKey:@"photos"]];
    }
    
    return data;
}
@end
